﻿using System;
using System.Collections.Generic;
using System.Web;

namespace H2.NET
{
    public class Regular
    {

        private object _obj;
        private string _message;
        private string _match;

        public string Match
        {
            get { return _match; }
        }

        public object Value
        {
            get { return _obj; }
        }

        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        public Regular(string match, object obj, string message)
        {
            _match = match;
            _obj = obj == null ? "" : obj;
            _message = message;
        }

        public Regular(object obj, string message)
        {
            _obj = obj == null ? "" : obj;
            _message = message;
        }
    }
}
